package com.peng.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 交易表
 * @TableName t_tran
 */
@TableName(value ="t_tran")
@Data
public class TTran implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键，自动增长，交易ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 交易流水号
     */
    @TableField(value = "tran_no")
    private String tran_no;

    /**
     * 客户ID
     */
    @TableField(value = "customer_id")
    private Integer customer_id;

    /**
     * 交易金额
     */
    @TableField(value = "money")
    private BigDecimal money;

    /**
     * 预计成交日期
     */
    @TableField(value = "expected_date")
    private Date expected_date;

    /**
     * 交易所处阶段
     */
    @TableField(value = "stage")
    private Integer stage;

    /**
     * 交易描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 下次联系时间
     */
    @TableField(value = "next_contact_time")
    private Date next_contact_time;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date create_time;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private Integer create_by;

    /**
     * 编辑时间
     */
    @TableField(value = "edit_time")
    private Date edit_time;

    /**
     * 编辑人
     */
    @TableField(value = "edit_by")
    private Integer edit_by;
}